
<fieldset><legend>我的家庭关系</legend>
<table>
	<tr align="center">
		<th width="40">序号</th>
		<th>亲戚</th>
		<th>关系</th>
		<th>电话</th>
	</tr>
	{[foreach name=outer key=key item=item from=$my]} {[assign var="no" value="`$key+$pager->from+1`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td>{[$no]}</td>

		<td>{[$item.name]}</td>
		<td>{[$item.relative]}</td>

		<td>{[$item.tel]}</td>
	</tr>
	{[/foreach]}
</table>
</fieldset>

<fieldset><legend>添加家庭关系</legend>
<form id="form_add" method="post" action="{[$root]}{[$postLink]}{[$p1]}{[$p2]}"><input type="hidden" name="id"
	value="{[$smarty.request.id]}" />
<table>
	<tr>
		<td align="right">员工：</td>
		<td colspan="3">{[$emp.name]}({[$emp.id]})</td>
	</tr>
	<tr>
		<td width="20%" align="right">姓名：</td>
		<td width="30%"><input type="text" name="name" size="12" value=""></td>
		<td width="20%" align="right">电话：</td>
		<td width="30%"><input type="text" name="tel" size="16" value=""></td>
	</tr>
	<tr>
		<td align="right">关系：</td>
		<td colspan="3"><input type="text" name="relative" id="relative" size="12" value=""> <select name='relative_t' id='relative_t'>
			{[html_options options=$relative_option selected=-]}
		</select></td>
	</tr>
	<tr>
		<td align="right">地址：</td>
		<td colspan="3"><textarea rows="2" name="content" id="address" cols="55"></textarea></td>
	</tr>
	<tr>
		<td align="right">所在单位：</td>
		<td colspan="3"><input type="text" name="job" size="30" value=""></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="3" name="content" id="content" cols="55"></textarea></td>
	</tr>
</table>
</form>
</fieldset>

<script type="text/javascript" src="js/emp/family/add.js?r={[$smarty.now]}"></script>
